home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Przegladarki internetowe / Mozilla Seamonkey 1.0.5 pl / seamonkey-1.0.5.pl-PL.win32.installer.exe / MAIL.XPI / bin / chrome / messenger.jar / content / messenger / SearchDialog.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-07-29  |  10.9 KB  |  228 lines

  1. <?xml version="1.0"?>
  2.  
  3.  
  4. <!-- ***** BEGIN LICENSE BLOCK *****
  5.  Version: MPL 1.1/GPL 2.0/LGPL 2.1
  6.  
  7.  The contents of this file are subject to the Mozilla Public License Version
  8.  1.1 (the "License"); you may not use this file except in compliance with
  9.  the License. You may obtain a copy of the License at
  10.  http://www.mozilla.org/MPL/
  11.  
  12.  Software distributed under the License is distributed on an "AS IS" basis,
  13.  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  14.  for the specific language governing rights and limitations under the
  15.  License.
  16.  
  17.  The Original Code is Mozilla Communicator client code, released
  18.  March 31, 1998.
  19.  
  20.  The Initial Developer of the Original Code is
  21.  Netscape Communications Corporation.
  22.  Portions created by the Initial Developer are Copyright (C) 1998-1999
  23.  the Initial Developer. All Rights Reserved.
  24.  
  25.  Contributor(s):
  26.  
  27.  Alternatively, the contents of this file may be used under the terms of
  28.  either of the GNU General Public License Version 2 or later (the "GPL"),
  29.  or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  30.  in which case the provisions of the GPL or the LGPL are applicable instead
  31.  of those above. If you wish to allow use of your version of this file only
  32.  under the terms of either the GPL or the LGPL, and not to allow others to
  33.  use your version of this file under the terms of the MPL, indicate your
  34.  decision by deleting the provisions above and replace them with the notice
  35.  and other provisions required by the GPL or the LGPL. If you do not delete
  36.  the provisions above, a recipient may use your version of this file under
  37.  the terms of any one of the MPL, the GPL or the LGPL.
  38.  
  39.  ***** END LICENSE BLOCK ***** -->
  40. <?xml-stylesheet href="chrome://messenger/skin/searchDialog.css" type="text/css"?>
  41.  
  42. <?xul-overlay href="chrome://messenger/content/threadPane.xul"?>
  43. <?xul-overlay href="chrome://messenger/content/searchTermOverlay.xul"?>
  44. <?xul-overlay href="chrome://messenger/content/msgFolderPickerOverlay.xul"?>
  45. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  46. <?xul-overlay href="chrome://messenger/content/platformMailnewsOverlay.xul"?>
  47.  
  48. <!DOCTYPE window SYSTEM "chrome://messenger/locale/SearchDialog.dtd" >
  49.  
  50. <window id="searchMailWindow"
  51.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  52.         xmlns:nc="http://home.netscape.com/NC-rdf#"
  53.         onload="searchOnLoad();"
  54.         onunload="searchOnUnload();"
  55.         onclose="onSearchStop();"
  56.         windowtype="mailnews:search"
  57.         title="&searchDialogTitle.label;"
  58.         style="width: 52em; height: 34em;"
  59.         persist="screenX screenY width height sizemode">
  60.  
  61.   <stringbundle id="bundle_search" src="chrome://messenger/locale/search.properties"/>
  62.   <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  63.   <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
  64.   <!-- XXX: only mailWidgets.xml requires strres.js (<script> isn't valid in XBL yet - see hyatt)-->
  65.   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
  66.   <script src="chrome://messenger/content/mailWindow.js"/>
  67.   <script src="chrome://messenger/content/threadPane.js"/>
  68.   <script src="chrome://messenger/content/msgMail3PaneWindow.js"/>
  69.   <script src="chrome://global/content/globalOverlay.js"/>
  70.   <script src="chrome://messenger/content/mailCommands.js"/>
  71.   <script src="chrome://messenger/content/mailWindowOverlay.js"/>
  72.   <script src="chrome://messenger/content/commandglue.js"/>
  73.   <script src="chrome://messenger/content/SearchDialog.js"/>
  74.   <script type="application/x-javascript" src="chrome://messenger/content/messengerdnd.js"/>
  75.  
  76.   <commands id="commands">
  77.     <commandset id="mailSearchItems"
  78.                 commandupdater="true"
  79.                 events="mail-search"
  80.                 oncommandupdate="goUpdateSearchItems(this)">
  81.       <command id="cmd_open" oncommand="goDoCommand('cmd_open')" disabled="true"/>
  82.       <command id="button_delete" oncommand="goDoCommand('button_delete')" disabled="true"/>
  83.       <command id="goto_folder_button" oncommand="goDoCommand('goto_folder_button')" disabled="true"/>
  84.       <command id="saveas_vf_button" oncommand="goDoCommand('saveas_vf_button')" disabled="false"/>
  85.       <command id="file_message_button"/>
  86.       <command id="cmd_delete"/>
  87.     </commandset>
  88.   </commands>
  89.  
  90.   <keyset id="mailKeys">
  91.     <key id="key_delete" oncommand="goDoCommand('cmd_delete');"/>
  92.     <key id="cmd_shiftDelete" oncommand="goDoCommand('cmd_shiftDelete');"/>
  93.   </keyset>
  94.  
  95.   <broadcasterset id="mailBroadcasters">
  96.     <broadcaster id="Communicator:WorkMode"/>
  97.   </broadcasterset>
  98.  
  99.   <dummy class="usesMailWidgets"/>
  100.     
  101.     <vbox id="searchTerms" flex="3" persist="height">
  102.       <vbox>
  103.          <hbox align="center">
  104.          <label value="&searchHeading.label;" accesskey="&searchHeading.accesskey;"
  105.                 control="searchableFolders"/>
  106.          <menulist id="searchableFolders" flex="2">
  107.            <menupopup class="searchPopup" oncommand="updateSearchFolderPicker(this.getAttribute('uri'));"/>
  108.          </menulist>
  109.          <spacer flex="10"/>
  110.          <button id="search-button" oncommand="onSearchButton(event);" default="true"/>
  111.  
  112.         </hbox>
  113.         <hbox align="center">
  114.            <checkbox id="checkSearchSubFolders" label="&searchSubfolders.label;" checked="true" accesskey="&searchSubfolders.accesskey;"/>
  115.            <spacer flex="2"/>
  116.            <button label="&resetButton.label;" oncommand="onResetSearch(event);" accesskey="&resetButton.accesskey;"/>
  117.          </hbox>
  118.          <hbox align="center">
  119.            <checkbox id="checkSearchLocalSystem" label="&searchLocalSystem.label;" persist="checked" accesskey="&searchLocalSystem.accesskey;" oncommand="updateSearchLocalSystem();"/>
  120.            <spacer flex="2"/>
  121.            <button label="&helpButton.label;" align="end" oncommand="openHelp('search_messages');" accesskey="&helpButton.accesskey;"/> 
  122.          </hbox>
  123.       </vbox>
  124.  
  125.  
  126.       <hbox flex="1">
  127.         <vbox id="searchTermListBox" flex="1"/>
  128.       </hbox>
  129.     </vbox>
  130.     
  131.     <splitter id="gray_horizontal_splitter" collapse="after" persist="state">
  132.       <grippy/>
  133.     </splitter>
  134.     
  135.     <vbox id="searchResultListBox" flex="4" persist="height">
  136.        <vbox id="searchResultListBox" flex="1" >
  137.             <tree id="threadTree" flex="1" context="threadPaneContext"/>
  138.        </vbox>
  139.        <hbox align="start">
  140.             
  141.             <button label="&openButton.label;" id="openButton" command="cmd_open" accesskey="&openButton.accesskey;"/>
  142.             <button id="fileMessageButton" type="menu" label="&fileButton.label;"
  143.                     accesskey="&fileButton.accesskey;"
  144.                     observes="file_message_button"
  145.                     oncommand="MoveMessageInSearch(event.target)" 
  146.                     sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  147.                     sortDirection="ascending"
  148.                     datasources="rdf:msgaccountmanager rdf:mailnewsfolders"
  149.                     ref="msgaccounts:/">
  150.         <menupopup/>
  151.         <template> 
  152.         <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  153.           <menupopup>
  154.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  155.               <menupopup>
  156.                 <menuitem label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" disabled="true"/>
  157.                 <menuseparator/>
  158.               </menupopup>
  159.             </menu>
  160.           </menupopup>
  161.         </rule> 
  162.         <rule nc:NoSelect="true">
  163.           <menupopup>
  164.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  165.           </menupopup>
  166.         </rule>
  167.           <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  168.             <menupopup>
  169.               <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  170.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  171.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  172.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  173.                IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  174.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  175.                 <menupopup>
  176.                   <menuitem file-uri="..." label="&fileHereMenu.label;" accesskey="&fileHereMenu.accesskey;" />
  177.                   <menuseparator/>
  178.                 </menupopup>
  179.               </menu>
  180.             </menupopup>
  181.           </rule>
  182.           <rule nc:CanFileMessagesOnServer="false">
  183.             <!-- don't show servers (nntp & any others) which does not allow message filing -->
  184.             <!-- File, Move & Copy menus -->
  185.           </rule>
  186.           <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  187.           <!-- note, there is no "file here" -->
  188.             <menupopup>
  189.               <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  190.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  191.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  192.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  193.                IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  194.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  195.                 <menupopup/>
  196.               </menu>
  197.             </menupopup>
  198.           </rule>
  199.           <rule nc:CanFileMessages="true">
  200.             <menupopup>
  201.               <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  202.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  203.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  204.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  205.                IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"
  206.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  207.             </menupopup>
  208.           </rule>
  209.         </template>
  210.       </button>
  211.  
  212.       <button label="&deleteButton.label;" id="deleteButton" command="button_delete" accesskey="&deleteButton.accesskey;"/>
  213.       <button label="&goToFolderButton.label;" id="goToFolderButton" command="goto_folder_button" accesskey="&goToFolderButton.accesskey;" />
  214.       <button label="&saveAsVFButton.label;" id="saveAsVFButton" command="saveas_vf_button" accesskey="&saveAsVFButton.accesskey;" />
  215.       <spacer flex="1" />
  216.     </hbox>      
  217.   </vbox>
  218.  
  219.   <statusbar class="chromeclass-status" id="status-bar"> 
  220.     <statusbarpanel class="statusbarpanel-iconic" id="offline-status"/>
  221.     <statusbarpanel class="statusbarpanel-progress" id="progress-panel" hidden="true">
  222.       <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
  223.     </statusbarpanel>
  224.     <statusbarpanel id="statusText" crop="right" flex="1"/>
  225.   </statusbar> 
  226.  
  227. </window>
  228.